package comone.javafour;

public class Dog extends Pet {

    @Override
    public void eat() {
        if(this.getHealth()>=100){
            System.out.println("宠物的身体挺好..");
        }else {
            System.out.println("吃骨头，");
            this.setHealth(100);
            System.out.println("健康值已经恢复");
        }

    }

    public void fp(){
        System.out.println("接飞盘...");
    }
}
